package zxs.sino.elite.hub.controller;


import java.util.List;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import zxs.sino.elite.hub.model.vo.InterestVo;
import zxs.sino.elite.hub.service.app.InterestService;
import zxs.sino.elite.hub.utils.R;



/**
 * 兴趣表
 *
 * @author zhang
 * @email 15824760766@163.com
 * @date 2025-09-02 20:23:52
 */
@RestController
@RequestMapping("interest")
@RequiredArgsConstructor
public class InterestController {

    private final  InterestService interestService;

    /**
     * 列表
     */
    @GetMapping("/list")
    public R list(){
        List<InterestVo> interests = interestService.listWithTree();

        return R.ok().put("data", interests);
    }
}
